package com.yy.finvideoplayer.media

/**
 * @Description: IMediaCallback
 * @Author: yiw89
 * @CreateDate: 2025/9/1 13:42
 * @Version: 1.0
 */
interface IMediaCallback {
    fun onPrepared(iMediaControl: IMediaControl) //准备完毕

    fun onCompletion(iMediaControl: IMediaControl) //播放完毕

    fun onSeekComplete(iMediaControl: IMediaControl) //拖动进度条完毕

    fun onInfo(iMediaControl: IMediaControl, what: Int, extra: Int) //播放事件 [缓冲 缓冲完毕

    fun onVideoSizeChanged(iMediaControl: IMediaControl, width: Int, height: Int) //视频尺寸变化

    fun onError(iMediaControl: IMediaControl, what: Int, extra: Int) //播放出错

    fun onBufferingUpdate(iMediaControl: IMediaControl, percent: Float) //缓冲进度 0~1
}